<!doctype html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>厨师预约</title>
    <link rel="stylesheet" type="text/css" th:href="@{user_center/css/identify.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{user_center/css/layout.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{user_center/css/account.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{user_center/css/style.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{user_center/css/control_index.css}" />
    <script type="text/javascript" th:src="@{user_center/js/jquery-1.7.2.min.js}"></script>
    <script type="text/javascript" th:src="@{user_center/js/layer/layer.js}"></script>
    <script type="text/javascript" th:src="@{user_center/js/haidao.offcial.general.js}"></script>
    <script type="text/javascript" th:src="@{user_center/js/select.js}"></script>
    <script type="text/javascript" th:src="@{user_center/js/haidao.validate.js}"></script>

    <style>
        .table tr th {
            text-align: center !important;
        }
        .table tr td {
            text-align: center !important;
        }
    </style>
</head>

<body>
<div th:replace="common/common::#lefttop"></div>

<div class="view-body">

    <div th:replace="common/common::#left"></div>

    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">请选择厨师需要受理的订单</h6>
            </div>
            <div class="offcial-table input-table table-margin clearfix">
                <div class="tr-th clearfix">
                    <div class="th w5 text-center"><!--<input class="margin-top-15" type="checkbox" />--></div>
                    <div class="th w40">订单号</div>
                    <div class="th w30">创建时间</div>
                    <div class="th w10">订单状态</div>
                    <div class="th w15 text-center">操作</div>
                </div>

                <div class="tr-th clearfix" th:each="order:${orders}">
                    <div class="th w5 text-center"><!--<input class="margin-top-15" type="checkbox" />--></div>
                    <div class="th w40">[[${order.orderid}]]</div>
                    <div class="th w30">[[${order.creationtime}]]</div>
                    <div class="th w10" th:if="${order.orderStatus}==3">被拒绝</div>
                    <div class="th w10" th:if="${order.orderStatus}==2">已同意</div>
                    <div class="th w10" th:if="${order.orderStatus}==1">未受理</div>
                    <div class="th w10" th:if="${order.orderStatus}==0">已过期</div>
                    <div class="th w15 text-center" th:if="${order.orderStatus==1}"><a th:href="@{'/apCooker.do?orderid='+${order.orderid}}">选择</a></div>
                    <div class="th w15 text-center" th:if="${order.orderStatus==0||order.orderStatus==2}">不能操作</div>
                    <div class="th w15 text-center" th:if="${order.orderStatus==3}"><a th:href="@{'/reAppointment?orderid='+${order.orderid}}">重新预约</a></div>
                </div>

            </div>


            <!--            <div class="tr non-info show border-bottom-none">-->
            <!--                <span>没查询到符合条件的记录</span>-->
            <!--            </div>-->
            <!--            商品详情-->


        </div>
    </div>
    <div class="show-page padding-big-right hidden">
        <div class="page">
        </div>
    </div>
</div>
</div>

<script>
    $(".sidebar-title").live('click', function () {
        if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
            $(this).next().slideDown(200);
            $(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
        } else {
            $(this).next().slideUp(200);
            $(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
        }
    });
</script>
</body>

</html>
